<#assign base=request.contextPath>
<!DOCTYPE html> 
<html>
	<head>
		<title></title>
		<meta charset="utf-8">
		<#include "common/reference.ftl" />
		<#include "common/ligerui.ftl" />
		<script type="text/javascript">
		<!--
			var ligerTable = null;
			$(function(){
				ligerTable = $('#table').ligerGrid({
					width:'98%',
					enabledSort:false,
					pageSizeOptions:[5,10,20,50,100,200],
					height:'auto',
					alternatingRow:true,
					url:'${base}/rated/driver/getList',
					columns:[
						{display:'编号',name:'id',id:'id',align:'center',Width:60},
						{display:'公司标识 部统一分配',name:'companyId',id:'companyId',align:'center'},
						{display:'机动车驾驶证编号',name:'licenseId',id:'licenseId',align:'center'},
						{display:'服务质量信誉等级(五分制)',name:'level',id:'level',align:'center'},
                        {display:'服务质量信誉考核日期(YYYYMMDD)',name:'testDate',id:'testDate',align:'center'},
                        {display:'服务质量信誉考核机构',name:'testDepartment',id:'testDepartment',align:'center',minWidth:200},
						{
							display:'操 作',
							align:'center',
							render:function(row){
								var opId = row.id;
							    return [
                                        '<a class="remove" href="javascript:void(0)" onclick="removeItem('+opId+')" title="删除">',
                                            '<i class="fa fa-remove"></i>',
                                        '</a>'
                                        ].join('');
							}
						}
					]
				});
				$('#btnSearch').click(function(){
					if(ligerTable){
						var searchKey = $('#txtSearchKey').val();
						ligerTable.setParm('searchKey',searchKey);
						ligerTable.reload();
					}
				});
			});

		    function removeItem(opId){
                layer.confirm('确定要删除吗？',function(){
                    $.ajax({
                        url:'${base}/rated/driverpunish/remove/'+opId,
                        type:'POST',
                        data:{},
                        dataType:'json',
                        success:function(rst){
                            layer.msg(rst.message);
                            if(rst.status=='OK' && ligerTable != null ){
                                ligerTable.reload();
                            }
                        }
                    });
                });
            }
		//-->
		</script>
	</head>
	<body>
		
		<#include "common/breadcrumb.ftl">
		
		<div class="widget-box">
			<div class="widget-header">
				<h5 class="lighter">查询</h5>
			</div>
			<div class="widget-body">
				<div class="widget-main">
					<div class="row">
						<div class="col-sm-4">
							<div class="input-group">
								<input id="txtSearchKey" type="text" class="form-control search-query" placeholder="请输关键字" />
								<span class="input-group-btn">
									<button id="btnSearch" type="button" class="btn btn-purple btn-sm">
										查询
										<i class="icon-search icon-on-right bigger-110"></i>
									</button>
								</span>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="widget-box">
			<div class="widget-header">
				<h5 class="lighter">
					<i class="icon-table"></i>
					驾驶员信誉信息列表
				</h5>
			</div>
			<div class="widget-body">
				<div id="table"><div>
			</div>
		</div>
	</body>
</html>